<?php
$name_f = array(
        'name'=>'name',
        'id'=>'name',
        'value'=>set_value('name',lang('your_name')),
        'old'=>lang('your_name'),
        'class'=>'input-field',
		'style'=>'width:220px'
        );
$email_f = array(
        'name'=>'email',
        'id'=>'email',
        'value'=>set_value('email',lang('email_contact')),
        'old'=>lang('email'),
        'class'=>'input-field',
		'style'=>'width:220px'
        );
$phone_f = array(
        'name'=>'phone',
        'id'=>'phone',
        'value'=>set_value('phone',lang('phone_contact')),
        'old'=>lang('phone'),
        'class'=>'input-field',
		'style'=>'width:220px'
        );
$message_f = array(
        'name'=>'message',
        'id'=>'message',
        'value'=>set_value('message',''),
        'old'=>lang('message'),
        'class'=>'input-field',
        );
?>
<?php require_once dirname(__FILE__) . '/../filter.php';?>
<div class="contact-left form-container">
		<div class="ui-widget" id="confirm" style="display: none; margin-top: 10px;">
			<div style="margin-top: 20px; padding: 0pt 0.7em;"
				class="ui-state-highlight ui-corner-all">
				<p>
					<span style="float: left; margin-right: 0.3em;"
						class="ui-icon ui-icon-info"></span> <strong><?=lang('succes_contact')?>
					</strong>
				</p>
			</div>
		</div>
		<div class="ui-widget" id="error" style="display: none; margin-top: 10px;">
			<div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
				<p>
					<span style="float: left; margin-right: 0.3em;"
						class="ui-icon ui-icon-alert"></span> <strong><?=lang('error_contact')?>
					</strong>
				</p>
			</div>
		</div>
        <?php print form_open('contact/index/',array('id'=>'contact_form'));?>
        	<h1><?=lang('contact')?></h1>
        	<div class="contact-content-container">
        		<div class="contact-content">
        			<?php echo lang("contact_text_right");?>
        			<div style="margin-top:10px;">
        				<img src="<?php echo IMAGES_URL . 'icons/contact_mail.png'?>"/> 
        				<span class="brown brown"><?php echo $this->config->item('support_email');?></span>
        			</div>
        		</div>
        		<div class="contact-content">
        			<?php echo lang("contact_text_right");?>
        			<div style="margin-top:10px;" class="brown brown"><img src="<?php echo IMAGES_URL . 'icons/contact_phone.png'?>" /> <?php echo $this->config->item('support_phone');?></div>
        		</div>
        		<div class="contact-content">
        			<?php echo lang("contact_text_right");?>
        			<div style="margin-top:10px;" class="brown brown"><img src="<?php echo IMAGES_URL . 'icons/contact_mail.png'?>" /> <?php echo $this->config->item('support_email');?></div>
        		</div>
        		<div class="clear"></div>
        	</div>
        	<div class="contact-content-container">
        		<?php echo lang("contact_main_content")?>
        	</div>
        	
        	<div id="contact_information" class="jNice">	
        		<h1><?php echo lang('contact_information')?></h1>
        		<div>
        			<div class="left">
	                    <?=form_input($name_f)?>
					</div>
					<div class="left">
		                <?=form_input($email_f)?>
					</div>
					<div class="left">
		                <?=form_input($phone_f)?>
					</div>
			        <div class="clear"></div>
			        <div class="left">
			        	<?=form_label(lang('contact_by'))?>
			        	<div class="input_container">
			        		<div class="left"><?php echo lang('email')?>:<input type="radio" name="contact_by" value="<?php echo lang('email')?>"></div>
			        		<div class="right"><?php echo lang('phone')?>:<input type="radio" name="contact_by" value="<?php echo lang('phone')?>"></div>
			        	</div>
			        </div>
			        <div class="left">
			        	<?=form_label(lang('contact_time'))?>
			        	<div>
			        		<span id="contact_form_selec_label"></span>
			        			<?php if (count($contact_time)){?>
				        		<input type="hidden" name="contact_time" id="contact_time" value="<?php echo lang($contact_time[0])?>">
					        	<div id="contact-time-container">
			        			<?php foreach ($contact_time as $key=>$value){?>					        
						        		<div onclick="setConactTime(this)"><?php echo lang($value)?></div>
					        	<?php }?>
					        	</div>
				
				        	<?php }?>
				        </div>
			        </div>
			        <div class="left">
						<?=form_label(lang('message_contact'))?>
			            <?=form_textarea($message_f)?>
			        </div>
			        <div class="clear"></div>
		         </div>
	
	            <div class="right" id="btn-send">
					<?=lang('send_contact')?>
	            </div>
	            <div class="clear"></div>
			</div>
        <?php print form_close()?>
</div>   
<div class="clear"></div>